<div class="row">
    <div class="span4 box-widget">
        <?php
        $atributos_formulario = array('class' => 'form-search pull-right', 'id'=>'form1');
        echo form_open ("AssuntoController/adicionarComentario/".$id.'#erro',$atributos_formulario);
        echo form_input(array('name'=>'texto', 'class'=>'search-query search-form validate[required, minSize[3]]','placeholder'=>'Digite uma palavra...'),  set_value('texto'));
        $btnGravar = array('name' => 'button','id' => 'button','value' => 'true','type' => 'submit', 'content' => 'Ir', 'class' => 'btn btn-primary pull-left');
        echo form_button($btnGravar); 
        echo form_close(); ?>
    </div>
</div>